"""
思路：
1.定义一个列表存放老师
2.定义一个列表存放办公室(每个办公室当做一个列表) -- 列表嵌套
3.遍历老师数据 把老师(数据)添加到办公室(容器相当于空的列表)中
4.验证
"""
# import random
# teacher = ["A","B","C","D","E","F","G","H"]
# offices = [[],[],[]]  # 最外面的列表用来存储办公室的，里面的列表存储老师的
# for i in teacher:  # 拿到每一个老师的数据
#     index = random.randint(0,2) # 0 1 2 拿到随机下标
#     # index=1 A--中间那个办公室去
#     offices[index].append(i)
# print(offices)


nums = [1, 2, 3, 1, 4, 2, 1, 3, 7, 3, 3]
# cou_i = 0
# cou = 0
# for i in range(0, len(nums) - 1):
#     count = 1
#     for j in range(i + 1, len(nums)):
#         if nums[i] == nums[j]:
#             count += 1
#     if cou < count:
#         cou = count
#         cou_i = i
# print(nums[cou_i])
for i in range(0,len(nums)-1):
    print(i)


